﻿using System;

namespace ShureValidation
{
    /// <summary>
    /// Provide language prompts through attributes.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public class LanguagePromptAttribute : Attribute
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="LanguagePromptAttribute"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="prompt">The prompt.</param>
        public LanguagePromptAttribute(string name, string prompt)
        {
            Name = name;
            Prompt = prompt;
        }

        /// <summary>
        /// Gets name of text
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets text to display
        /// </summary>
        public string Prompt { get; set; }
    }
}